package com.sq.controller;

import com.sq.feign.UsersFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2020-06-04 17:05
 */
@RestController
public class ProductController {

	/*@Autowired
	ProductFeign productFeign;
*/
	@Autowired
	UsersFeign usersFeign;


	@RequestMapping("/get")
	public String get(){
		return" productFeign.get()";
	}
	@RequestMapping("/aa")
	public String aa(){
		return" productFeign.get()";
	}

	@RequestMapping("/getuser")
	public Object getUser(){
		return usersFeign.get();
	}
}
